import axios from '@/config/httpConfig'
import qs from 'qs'

// 获取商户列表
export function getMerchantList(data) {
    return axios.post('/business/merchants', data)
}

// 获取地区数据
export function getAreaData(data) {
    return axios.get('/business/options/regions', data)
}

// 商户状态修改
export function statusModify(data) {
    let { merchantId, switchStr } = data
    return axios.put(`/business/merchants/${merchantId}/authority/${switchStr}`)
}

// 商户导出
export function merchantsExport(data) {
    return axios.post('/business/merchants/export-excel', data, {responseType:"blob"})
}
